<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>这是</title>
		<link rel="stylesheet" type="text/css" href="{$webSite}/public/css/base.css"/>
	</head>
	<style>
		/*******	主体导航栏  a_head_main 	**********/
		.a_head_main{
			/* width:1000px; */
			width:82%;
			min-height:650px;
			float:left;
			margin-left:180px;
			margin-top:120px;
		}
		.main_site1_head{
			/* width:1000px; */
			width:100%;
			height:50px;
			border-bottom:1px #DEEFFB solid;
			line-height:50px;
			font-size:16px;
			font-weight:bold;
			color:#09C;
		}
		
		.main_site1_head2{
			/* width:1000px; */
			width:100%;
			height:35px;
			background:#F3F8FD;
			border-bottom:1px #DEEFFB solid;
			line-height:35px;
			font-size:14px;
			font-weight:bold;
			color:#09C;
		}
		.main_site2_head3{
			/* width:1000px; */
			width:100%;
			height:40px;
			background:#fff;
			border-bottom:1px #DEEFFB solid;
			line-height:40px;
			
		}
		.main_site2_form_head{
			/* width:1000px; */
			width:100%;
			height:40px;
			background:#fff;
			border-bottom:1px #DEEFFB solid;
			line-height:40px;
			
		}
		.main_site2_form_head .div1{
			width:90px;
			height:40px;
			text-align:center;
			float:left;
			margin-left:70px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div1 span{
			font-size:12px;
			font-weight:100;
			color:#F60;
		}
		.main_site2_form_head .div2{
			width:80px;
			height:40px;
			text-align:center;
			float:left;
			margin-left:80px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div3{
			width:80px;
			height:40px;
			text-align:center;
			float:left;
			margin-left:120px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div4{
			width:120px;
			height:40px;
			text-align:center;
			float:left;
			margin-left:120px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div5{
			width:120px;
			height:40px;
			text-align:center;
			float:left;
			margin-left:80px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_body{
			/* width:1000px; */
			width:100%;
			height:40px;
			background:#fff;
			border-bottom:1px #DEEFFB solid;
			line-height:40px;
			
		}
		.main_site2_form_body:hover{
		
			background:#F2F9FD;
			
		}
		.main_site2_form_body  .put1{
			
			margin-left:20px;
		}
		.main_site2_form_body  .put2{
			width:60px;
			margin-left:50px;
		}
		.main_site2_form_body  .put3{
			width:120px;
			margin-left:80px;
		}
		.main_site2_form_body  .put4{
			width:120px;
			margin-left:60px;
		}
		.main_site2_form_body  .put5{
			width:200px;
			margin-left:60px;
		}
		.main_site2_form_body  .put6{
			width:120px;
			margin-left:40px;
		}
		.main_site2_form_body  input:hover{
			border:1px #09C solid;
		}
		.main_site2_form_btn{
			/* width:1000px; */
			width:100%;
			height:50px;
			background:#fff;
			border-bottom:1px #DEEFFB solid;
			line-height:50px;
			margin-bottom:40px;
		}
		.main_site2_form_btn input{
			
			width:50px;
			height:25px;
			background:#7B68EE;
			color:#fff;
			font-size:14px;
			float:left;
			margin-top:10px;
			margin-left:20px;
		}
		.main_site2_form_btn  .btn{
			margin-left:85px;
		}
	</style>

	<body>
		<!-- 操作主体  a_head_main-->
		<div class="a_head_main">
			<div class="main_site1_head">友情链接管理</div>
			
			<div class="main_site1_head2">&nbsp;技巧提示</div>
			<div class="main_site2_head3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;未填写文字说明的项目将以紧凑型显示。</div>
			
			<!-- 没有数据时, 隐藏按钮 -->
			{if $countLink1}

			<!-- 删除,修改 链接部分 -->
			<!-- 头部 -->
			<div class="main_site2_form_head clearFix">
				
				<div class="div1">显示顺序</div>
				<div class="div2">站点名称</div>
				<div class="div3">站点 URL</div>
				<div class="div4">文字说明(可选)</div>
				<div class="div5">logo 地址(可选)</div>
			</div>
			
			<!-- form表单部分 -->

			<form action="{$webSite}admin/admin/admin_site21.php" method="post" enctype="multipart/form-data">

			<!-- foreach循环遍历处 -->
			{if $resLink}
			{foreach $resLink as $valLink}
				{if $valLink['isdel'] == 0}
			<div class="main_site2_form_body">
			
			<!-- 通过将所需的批量数据打包成数组 -->
				<input class="put1"  type="checkbox" name="arr[{$valLink['lid']}]"  value="{$valLink['lid']}">
			
				<input class="put2" type="text"  name="displayOrder[{$valLink['lid']}]"  value="{$valLink['displayorder']}" maxlength="2">
			
				<input class="put3" type="text" name="siteName[{$valLink['lid']}]" value="{$valLink['name']}">
			
				<input class="put4" type="text"  name="siteUrl[{$valLink['lid']}]" value="{$valLink['url']}">
			
				<input class="put5" type="text" name="description[{$valLink['lid']}]" value="{$valLink['description']}">
				
				<input class="put6" type="text"  name="logoAddr[{$valLink['lid']}]"  value="{$valLink['logo']}">
			</div>
				{/if}
			{/foreach}
			{/if}

			
			<div  class="main_site2_form_btn">
				<input class="btn" type="submit" value="删 除" name="siteBtn">

				<input class="btn" type="submit" value="修 改" name="siteBtn">

			</div>
			{else}
			<div  class="main_site2_form_btn">
					<div style="color:red; font-size:2rem;text-align:center;">该页面暂无数据,请添加</div>	
			</div>
			{/if}

			</form>


			<!-- 添加链接部分 -->
			<!-- 头部 -->
			<div class="main_site2_form_head clearFix">
				
				<div class="div1">显示顺序</div>
				<div class="div2">站点名称</div>
				<div class="div3">站点 URL</div>
				<div class="div4">文字说明(可选)</div>
				<div class="div5">logo 地址(可选)</div>
			</div>
			<div class="main_site2_form_head">
				<div class="div1">
					<img src="{$webSite}/public/images/admin_link.gif"><span> 添加友情链接</span>
				</div>
			</div>
			<!-- form表单部分 -->

			<form action="{$webSite}admin/admin/admin_site22.php" method="post" enctype="multipart/form-data">

			<!-- foreach循环遍历处 -->
			<div class="main_site2_form_body">

				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="put2" type="text" name="displayOrder">
			
				<input class="put3" type="text" name="siteName">
			
				<input class="put4" type="text" name="siteUrl">
			
				<input class="put5" type="text" name="description">
				
				<input class="put6" type="text" name="logoAddr">
			</div>
			
			
			<div  class="main_site2_form_btn">
				<input class="btn" type="submit" value="添 加">
			</div>
			
			</form>
			
			
		</div>
	</body>
</html>